<%@ page import="projectmanager.Project" %>



<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="project.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${projectInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="project.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${projectInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'projectManager', 'error')} required">
	<label for="projectManager">
		<g:message code="project.projectManager.label" default="Project Manager" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="projectManager" name="projectManager.id" from="${projectmanager.User.findAllByRole("Manager")}" optionKey="id" required="" value="${projectInstance?.projectManager?.id}" class="many-to-one"/>
</div>
<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'status', 'error')} required">
	<label for="status">
		<g:message code="project.status.label" default="Status" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="status" from="${projectInstance.constraints.status.inList}" required="" value="${projectInstance?.status}" valueMessagePrefix="project.status"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'startDate', 'error')} ">
	<label for="startDate">
		<g:message code="project.startDate.label" default="Start Date" />
		
	</label>
	<g:datePicker name="startDate" precision="day"  value="${projectInstance?.startDate}" default="none" noSelection="['': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'dueDate', 'error')} ">
	<label for="dueDate">
		<g:message code="project.dueDate.label" default="Due Date" />
		
	</label>
	<g:datePicker name="dueDate" precision="day"  value="${projectInstance?.dueDate}" default="none" noSelection="['': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'dateCompleted', 'error')} ">
	<label for="dateCompleted">
		<g:message code="project.dateCompleted.label" default="Date Completed" />
		
	</label>
	<g:datePicker name="dateCompleted" precision="day"  value="${projectInstance?.dateCompleted}" default="none" noSelection="['': '']" />
</div>

